Skip to content

Extend keybinds with navigation#67

Merged
MartinBozhilov-coh merged 3 commits intonavigation-componentfrom
extend-keybinds-with-navigation
Feb 6, 2026
Merged

Extend keybinds with navigation#67
MartinBozhilov-coh merged 3 commits intonavigation-componentfrom
extend-keybinds-with-navigation

Conversation

@MartinBozhilov-coh
Copy link
Contributor

No description provided.

Comment on lines 222 to 225
'0': Icon.gamepad.ps5.cross,
'1': Icon.gamepad.ps5.circle,
'2': <Icon.gamepad.ps5.square style={{width: '5vmax', height: '5vmax'}} />,
'3': <img src={customGlyphIcon} />,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comments with // to showcase the different ways to use the Icon

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request extends the Keybinds component with gamepad support and integrates it with the Navigation component system. The changes enable developers to bind gamepad buttons in addition to keyboard/mouse inputs, with proper visual glyph representation.

Changes:

  • Added gamepad mode support to Keybinds/Keybind components with configurable glyph overrides
  • Implemented pauseInput/resumeInput methods in Navigation for global action input control
  • Updated import paths for interaction-manager types to use a unified entry point
  • Added comprehensive tests and documentation for gamepad functionality

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
tests/src/components/Keybinds/KeybindsTest.tsx Added test scenarios for gamepad mode with Navigation integration and custom glyph overrides
tests/specs/keybinds.spec.js Added test suite for gamepad mode including glyph rendering, rebinding, and action pause behavior
tests/shared/keybinds/keybinds-selectors.json Added selector for action test element
tests/shared/keybinds/glyph-mappings.json New file with gamepad button mappings for test data
src/components/Utility/Navigation/types.ts Consolidated imports from interaction-manager into single entry point
src/components/Utility/Navigation/areaMethods/useAreaMethods.ts Updated import path for KeyName type
src/components/Utility/Navigation/areaMethods/areaMethods.types.ts Updated import path for KeyName type
src/components/Utility/Navigation/actionMethods/useActionMethods.ts Implemented pauseInput/resumeInput methods with snapshot logic for paused action states
src/components/Utility/Navigation/actionMethods/actionMethods.types.ts Added JSDoc documentation for pauseInput/resumeInput methods
src/components/Media/Icon/Icon.tsx Added optional chaining for props.class to prevent potential undefined errors
src/components/Basic/Keybinds/util/glyphs.ts New file defining default gamepad button-to-glyph mappings using Xbox layout
src/components/Basic/Keybinds/Keybinds.tsx Added gamepad mode support, button input sanitization, and glyph override functionality
src/components/Basic/Keybinds/Keybinds.module.scss Extended hover styles to include focus state for keyboard/gamepad navigation
src/components/Basic/Keybinds/Keybind.tsx Implemented gamepad listening logic with button polling and axis detection
package.json Updated coherent-gameface-interaction-manager from 2.6.0 to 2.8.0
docs/src/content/docs/components/Utility/Navigation.mdx Documented new pauseInput/resumeInput API methods
docs/src/content/docs/components/Basic/keybinds.mdx Added comprehensive gamepad support documentation with usage examples
docs/src/content/docs/changelog/index.mdx Added changelog entry for Keybind navigation actions and gamepad guide

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MartinBozhilov-coh MartinBozhilov-coh merged commit 268bc37 into navigation-component Feb 6, 2026
@MartinBozhilov-coh MartinBozhilov-coh deleted the extend-keybinds-with-navigation branch February 6, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants